
/* First created by JCasGen Thu Feb 13 18:01:11 CET 2014 */
package de.unidue.langtech.teaching.pp.type;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Thu Mar 13 12:04:39 CET 2014
 * @generated */
public class TimexEvent_Type extends Annotation_Type {
  /** @generated */
  @Override
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (TimexEvent_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = TimexEvent_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new TimexEvent(addr, TimexEvent_Type.this);
  			   TimexEvent_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new TimexEvent(addr, TimexEvent_Type.this);
  	  }
    };
  /** @generated */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = TimexEvent.typeIndexID;
  /** @generated 
     @modifiable */
  @SuppressWarnings ("hiding")
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("de.unidue.langtech.teaching.pp.type.TimexEvent");
 
  /** @generated */
  final Feature casFeat_goldValue;
  /** @generated */
  final int     casFeatCode_goldValue;
  /** @generated */ 
  public String getGoldValue(int addr) {
        if (featOkTst && casFeat_goldValue == null)
      jcas.throwFeatMissing("goldValue", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    return ll_cas.ll_getStringValue(addr, casFeatCode_goldValue);
  }
  /** @generated */    
  public void setGoldValue(int addr, String v) {
        if (featOkTst && casFeat_goldValue == null)
      jcas.throwFeatMissing("goldValue", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    ll_cas.ll_setStringValue(addr, casFeatCode_goldValue, v);}
    
  
 
  /** @generated */
  final Feature casFeat_timexId;
  /** @generated */
  final int     casFeatCode_timexId;
  /** @generated */ 
  public String getTimexId(int addr) {
        if (featOkTst && casFeat_timexId == null)
      jcas.throwFeatMissing("timexId", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    return ll_cas.ll_getStringValue(addr, casFeatCode_timexId);
  }
  /** @generated */    
  public void setTimexId(int addr, String v) {
        if (featOkTst && casFeat_timexId == null)
      jcas.throwFeatMissing("timexId", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    ll_cas.ll_setStringValue(addr, casFeatCode_timexId, v);}
    
  
 
  /** @generated */
  final Feature casFeat_detectedValue;
  /** @generated */
  final int     casFeatCode_detectedValue;
  /** @generated */ 
  public String getDetectedValue(int addr) {
        if (featOkTst && casFeat_detectedValue == null)
      jcas.throwFeatMissing("detectedValue", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    return ll_cas.ll_getStringValue(addr, casFeatCode_detectedValue);
  }
  /** @generated */    
  public void setDetectedValue(int addr, String v) {
        if (featOkTst && casFeat_detectedValue == null)
      jcas.throwFeatMissing("detectedValue", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    ll_cas.ll_setStringValue(addr, casFeatCode_detectedValue, v);}
    
  
 
  /** @generated */
  final Feature casFeat_timexType;
  /** @generated */
  final int     casFeatCode_timexType;
  /** @generated */ 
  public String getTimexType(int addr) {
        if (featOkTst && casFeat_timexType == null)
      jcas.throwFeatMissing("timexType", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    return ll_cas.ll_getStringValue(addr, casFeatCode_timexType);
  }
  /** @generated */    
  public void setTimexType(int addr, String v) {
        if (featOkTst && casFeat_timexType == null)
      jcas.throwFeatMissing("timexType", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    ll_cas.ll_setStringValue(addr, casFeatCode_timexType, v);}
    
  
 
  /** @generated */
  final Feature casFeat_timexText;
  /** @generated */
  final int     casFeatCode_timexText;
  /** @generated */ 
  public String getTimexText(int addr) {
        if (featOkTst && casFeat_timexText == null)
      jcas.throwFeatMissing("timexText", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    return ll_cas.ll_getStringValue(addr, casFeatCode_timexText);
  }
  /** @generated */    
  public void setTimexText(int addr, String v) {
        if (featOkTst && casFeat_timexText == null)
      jcas.throwFeatMissing("timexText", "de.unidue.langtech.teaching.pp.type.TimexEvent");
    ll_cas.ll_setStringValue(addr, casFeatCode_timexText, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public TimexEvent_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_goldValue = jcas.getRequiredFeatureDE(casType, "goldValue", "uima.cas.String", featOkTst);
    casFeatCode_goldValue  = (null == casFeat_goldValue) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_goldValue).getCode();

 
    casFeat_timexId = jcas.getRequiredFeatureDE(casType, "timexId", "uima.cas.String", featOkTst);
    casFeatCode_timexId  = (null == casFeat_timexId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_timexId).getCode();

 
    casFeat_detectedValue = jcas.getRequiredFeatureDE(casType, "detectedValue", "uima.cas.String", featOkTst);
    casFeatCode_detectedValue  = (null == casFeat_detectedValue) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_detectedValue).getCode();

 
    casFeat_timexType = jcas.getRequiredFeatureDE(casType, "timexType", "uima.cas.String", featOkTst);
    casFeatCode_timexType  = (null == casFeat_timexType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_timexType).getCode();

 
    casFeat_timexText = jcas.getRequiredFeatureDE(casType, "timexText", "uima.cas.String", featOkTst);
    casFeatCode_timexText  = (null == casFeat_timexText) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_timexText).getCode();

  }
}



    